<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>监管单位--已办--遴选情况</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/static/css/weadmin.css">
    <script type="text/javascript" src="/templates/act/process-xl.js"></script>
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
    <style>
        h3 {
            text-align: center;
            font-weight: bold;
        }

        h4 {
            text-align: center;
        }
    </style>
</head>
<body>
<table class="layui-hide" id="klmyTable" lay-filter="klmyTable"></table>
<script type="text/javascript" src="/lib/layui/layui.js"></script>
<script src="/static/js/main.js"></script>
<script>
    var configureCom = {};
    layui.use(['jquery', 'configureCom', 'configure', 'sessionFun', 'table', 'matchDict', 'table'], function () {
        var $ = layui.jquery;
        var configure = layui.configure;
        var table = layui.table;
        var matchDict = layui.matchDict;
        var configureCom = layui.configureCom;
        window.$ = layui.jquery;
        var sessionFun = layui.sessionFun;//存储session

        var listData = sessionFun.get(configure.SESSION_PROJECT_LIST_DATA);//获取 存储的session
        var decId = listData.decId;
        nextAll = {
            decId: decId
        };
        configureCom.postDataAjax(configure.PRJ_SELECT_DISPLAY_DECLARE_HTTP, nextAll).then(function (res) {
            var arr = res.prjSelectionEntity.prjSelectionList[0].prjPriceList;//遴选记录
            var cols = [[
                {
                    field: 'selectedTimes',merge: true, width: 60, title: '批次', templet: function (d) {
                        return '<p>' + d.selectedTimes + '</p>'
                    }
                },
                {
                    field: 'selectKcCost', merge: true, title: '定价', templet: function (d) {
                        return '<p>勘察审查费用' + (d.selectKcCost || '-') +  '元'+ (d.kcDay||'-') + '天</p><p>施工图审查费用' + (d.selectSjCost ||'-') +  '元'+ (d.sjDay||'-') + '天</p>';
                    }
                },
                {
                    field: 'createTime', merge: true, title: '定价时间', templet: function (d) {
                        return '<p>' + (d.createTime || '-') + '</p>'
                    }
                },
                {
                    field: 'checkOrgName', title: '审查机构', templet: function (d) {
                        return '<p>' + (d.checkOrgName ||'-') + '</p>';
                    }
                },
                {
                    field: 'kcCost', title: '报价（元）', templet: function (d) {
                        return '<p>勘察审查费用' + (d.kcCost || '-') +  '元</p><p>施工图审查费用' + (d.sjCost || '-') +  '元</p>';
                    }
                },
                {
                    field: 'priceTime', title: '报价时间', templet: function (d) {
                        return '<p>' +  (d.priceTime || '-') + '</p>';
                    }
                },
                {
                    field: 'selectStatus', title: '是否选定', templet: function (d) {
                        return '<button class="layui-btn layui-btn-xs" id="">' + matchDict.name(d.selectStatus, 'PRICE_STATUS2') + '</button>';
                    }
                }
            ]];
            configureCom.tableMergeFun(cols, arr, 'klmyTable', '400');
        });


        //监听submit提交
        form.on('submit(submit)', function (data) {
            return false;
        });

    });

    function getData() {
        return new Promise(function (res, rej) {
            var data = {};
            if (!window.formVerifyFun()) {
                return false;
            }
            $('.formData').each(function (index, item) {
                var key = $(item).attr('name');
                data[key] = $(item).val();
            });
            res({result: data});
        });
    }
</script>
</body>
</html>